import request from '@/utiles/request.js'
// 获取城市列表数据
export const allListApi = ({ level }) => {
  return request({
    url: '/area/city',
    params: { level }
  })
}
// 热门城市
export const hotCityApi = () => {
  return request({
    url: '/area/hot'
  })
}
// 根据城市名称查询该城市信息
export const cityNameApi = ({ name }) => {
  return request({
    url: '/area/info',
    params: {
      name
    }
  })
}
// 获取子级城市列表
export const childCtiyApi = ({ id }) => {
  return request({
    url: '/area',
    params: {
      id
    }
  })
}
